package com.gemme.gemme.view;

import android.app.Activity;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.gemme.gemme.R;
import com.gemme.gemme.util.DpUtil;
import com.gemme.gemme.util.ShapeUtil;

public class PlatformSingleView extends RelativeLayout {
    private Context context;
    public PlatformSingleView(Context context) {
        this(context,null);
    }

    public PlatformSingleView(Context context, AttributeSet attrs) {
        this(context, attrs,0);
    }

    public PlatformSingleView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        this.context = context;
        initView();
    }

    private void initView() {
        LayoutInflater.from(context).inflate(R.layout.platform_single_view,this);
        TextView tv_end = findViewById(R.id.tv_end);
        try {
            tv_end.setBackground(ShapeUtil.getCornBg(DpUtil.dp2px(((Activity) context),12),"#FFF0F0F0"));
        }catch (Exception e){

        }

    }

}
